home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / reiser4 / master.h < prev    next >
C/C++ Source or Header  |  2006-01-09  |  2KB  |  59 lines

  1. /* Copyright (C) 2001, 2002, 2003, 2004 by Hans Reiser, licensing governed by
  2.    reiser4progs/COPYING.
  3.    
  4.    master.h -- master super block functions. */
  5.  
  6. #ifndef REISER4_MASTER_H
  7. #define REISER4_MASTER_H
  8.  
  9. #include <reiser4/types.h>
  10.  
  11. #define SUPER(master) (&master->ent)
  12.  
  13. #ifndef ENABLE_MINIMAL
  14.  
  15. extern int reiser4_master_confirm(aal_device_t *device);
  16. extern errno_t reiser4_master_sync(reiser4_master_t *master);
  17. extern errno_t reiser4_master_valid(reiser4_master_t *master);
  18. extern errno_t reiser4_master_reopen(reiser4_master_t *master);
  19. extern reiser4_plug_t *reiser4_master_guess(aal_device_t *device);
  20.  
  21. extern errno_t reiser4_master_layout(reiser4_master_t *master, 
  22.                      region_func_t region_func,
  23.                      void *data);
  24.  
  25. extern errno_t reiser4_master_backup(reiser4_master_t *master, 
  26.                      backup_hint_t *hint);
  27.  
  28. extern reiser4_master_t *reiser4_master_create(aal_device_t *device,
  29.                            fs_hint_t *hint);
  30.  
  31. extern void reiser4_master_set_uuid(reiser4_master_t *master,
  32.                     char *uuid);
  33.  
  34. extern void reiser4_master_set_label(reiser4_master_t *master,
  35.                      char *label);
  36.  
  37. extern void reiser4_master_set_format(reiser4_master_t *master,
  38.                       rid_t format);
  39.  
  40. extern void reiser4_master_set_blksize(reiser4_master_t *master,
  41.                        uint32_t blksize);
  42.  
  43. extern char *reiser4_master_get_uuid(reiser4_master_t *master);
  44. extern char *reiser4_master_get_label(reiser4_master_t *master);
  45. extern char *reiser4_master_get_magic(reiser4_master_t *master);
  46.  
  47. extern bool_t reiser4_master_isdirty(reiser4_master_t *master);
  48. extern void reiser4_master_mkdirty(reiser4_master_t *master);
  49. extern void reiser4_master_mkclean(reiser4_master_t *master);
  50. #endif
  51.  
  52. extern reiser4_master_t *reiser4_master_open(aal_device_t *device);
  53.  
  54. extern void reiser4_master_close(reiser4_master_t *master);
  55. extern rid_t reiser4_master_get_format(reiser4_master_t *master);
  56. extern uint32_t reiser4_master_get_blksize(reiser4_master_t *master);
  57. #endif
  58.  
  59.